<template>
  <div>
  <group  v-if='b' v-for='(item, index) in list' :key="index" @click.native="detail(index)">
    <cell title="课程名" :value='item.courseName'></cell>
    <cell title="创建时间:">{{item.creatTime}}</cell>
    <cell title="开始使用日期:">{{item.endTime}}</cell>
    <cell title="结束使用日期:">{{item.endTime}}</cell>
    <cell title="状态:">{{item.status===1?'待审核':item.status===2?'通过':'驳回'}}</cell>
    <cell title="详情" is-link ></cell>
  </group>
  <p style="text-align:center;" >
    <i v-if='!b' style="font-size:10em;color:#aaa;" class="iconfont icon-kongshuju"></i></p>
    <div v-transfer-dom>
      <!-- <loading :show="show1" text="加载中..."></loading> -->
    </div>
  </div>
</template> 

<script>
import {FormPreview, Group, Cell, CellBox, Loading, TransferDomDirective as TransferDom} from 'vux'
export default {
  directives: {
    TransferDom
  },
  props: ['list'],
  components: {
    FormPreview,
    Loading,
    Group,
    Cell,
    CellBox
  },
  data () {
    return {
      b: true,
      show1: true
    }
  },
  methods: {
    detail (index) {
      this.$router.push({path: '/Labdetail', query: { labid: this.list[index].id }})
    }
  },
  created () {
  }
}
</script>
<style scoped>
.weui-cell {
  border: none ;
  padding: 4px 15px;
}
.weui-cell:before {
  border: none ;
}
</style>
